package com.czxy.demo18;

public class Test01 {
    public static void main(String[] args) {
        Car car=new Car();
        Alto alto=new Alto();
        Audi audi=new Audi();
        alto.setPrice(800);
        audi.setPrice(1000);
        RentalHouse rh=new RentalHouse();
        double a = rh.rent(alto, 2);
        System.out.println(a);
        double b = rh.rent(audi, 9);
        System.out.println(b);
    }
}
